#include <iostream>

class RentHouse
{
public:
    virtual void rentHouse() = 0;
};

class Landlord : public RentHouse
{
public:
    void rentHouse()
    {
        std::cout << "Landlord rent the house" << std::endl;
    }
};

class Intermediary : public RentHouse
{
public:
    void rentHouse()
    {
        std::cout << "发布租房起始" << std::endl;
        std::cout << "带领租客看房" << std::endl;
        _ld.rentHouse();
        std::cout << "后期维修相关" << std::endl;
    }
private:
    Landlord _ld;
};

int main()
{
    Intermediary im;
    im.rentHouse();

    return 0;
}